import request from '@/axios'

function formatRequestUri(name) {
  return 'flow/node/route/' + name
}

export function Add(data) {
  return request.post({
    url: formatRequestUri('Add'),
    data
  })
}

export function Delete(id) {
  return request.get({
    url: formatRequestUri('Delete'),
    params: {
      id
    }
  })
}
